package io;

import java.io.IOException;

import org.jdom2.JDOMException;

/**
 * This class provides access to KeyWords data for the peer review system.
 * 
 * @author Lun-Wei Chang
 * 
 * @version March 11, 2014
 * 
 */
public class KeyWordsAccess extends AbstractAccess {
  /** Position of keywords id element in the XML file. */
  public static final int KEY_ID = 0;
  /** Position of keywords element in the XML file. */
  public static final int KEY_WORDS = 1;
  
  /** Name of the XML's file. */
  private static final String XMLFILE = "KeyWords.xml";
  
  /** A constant for the keywords id element in the XML file. */
  private static final String KEYID = "KeywordsID";
  /** A constant for the keywords element in the XML file. */
  private static final String KEYWORDS = "KeyWords";
  
  
  /**
   * The constructor to instantiate the KeyWordsAccess object.
   * @throws IOException If there is a problem establishing connectivity to the file.
   * @throws JDOMException If the file cannot be correctly parsed. 
   */
  public KeyWordsAccess() throws IOException, JDOMException {
    super(XMLFILE);
  }
}
